package com.example.forumsystem.demos.web.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class MessageInfo {
    private Long id;
    @ApiModelProperty("发送者的用户id")
    private Long postUserId;
    @ApiModelProperty("接收者的用户id")
    private Long receiveUserId;

    private String content;
    @ApiModelProperty("状态，0表示未读，1表示已读, 2表示已回复")
    private Byte state;

    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    @ApiModelProperty("发送者")
    private UserInfo postUser;

}